package com.igeekhome.mapper;

import com.igeekhome.pojo.SysStaffRoleExample;
import com.igeekhome.pojo.SysStaffRoleKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysStaffRoleMapper {
    int countByExample(SysStaffRoleExample example);

    int deleteByExample(SysStaffRoleExample example);

    int deleteByPrimaryKey(SysStaffRoleKey key);

    int insert(SysStaffRoleKey record);

    int insertSelective(SysStaffRoleKey record);

    List<SysStaffRoleKey> selectByExample(SysStaffRoleExample example);
    
    /**
    * @Description 根据id查询是否存在该id数据
    * @Param [id] 主键
    * @Return java.lang.Integer id主键
    **/
    Integer  selectById(Integer id );

    int updateByExampleSelective(@Param("record") SysStaffRoleKey record, @Param("example") SysStaffRoleExample example);

    int updateByExample(@Param("record") SysStaffRoleKey record, @Param("example") SysStaffRoleExample example);
}